<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/17
 * Time: 17:27
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class ProductTempBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'], 'namespace'=>'Backstage', 'prefix' =>'backstage/product-temp/'], function ($router) {
            $router->post('add-crowd', [ 'uses' => 'CrowdController@postAddCrowd'])->name('post.product-temp.crowd-list.add-crowd');
            $router->post('delete-crowd', [ 'uses' => 'CrowdController@postDeleteCrowd'])->name('post.product-temp.crowd-list.delete-crowd');
            $router->post('update-crowd', [ 'uses' => 'CrowdController@postUpdateCrowd'])->name('post.product-temp.crowd-list.update-crowd');
            $router->post('search-crowd', [ 'uses' => 'CrowdController@postJsonCrowdList'])->name('post.product-temp.crowd-list.search-crowd');
            $router->get('add-crowd', [ 'uses' => 'CrowdController@getAddCrowd'])->name('get.product-temp.crowd-list.add-crowd');
            $router->get('crowd-list', [ 'uses' => 'CrowdController@getCrowdList'])->name('get.product-temp.crowd-list');
            $router->get('update-crowd', [ 'uses' => 'CrowdController@getUpdateCrowd'])->name('get.product-temp.crowd-list.update-crowd');

            $router->get('size-list', [ 'uses' => 'SizeController@getSizeList'])->name('get.product-temp.size-list');
            $router->get('add-size', [ 'uses' => 'SizeController@addSizePage'])->name('get.product-temp.size-list.add-size');
            $router->post('size-list', [ 'uses' => 'SizeController@postGetSizeList'])->name('post.product-temp.size-list.size-list');
            $router->post('search-size', [ 'uses' => 'SizeController@postJsonSizeList'])->name('post.product-temp.size-list.search-size');
            $router->post('add-size', [ 'uses' => 'SizeController@postAddSize'])->name('post.product-temp.size-list.add-size');

            $router->get('product-temp-tag-list', [ 'uses' => 'ProductTempController@productTempTagList'])->name('get.product-temp.product-temp-tag-list');
            $router->get('get-tag-temp-maps', [ 'uses' => 'ProductTempController@getTagTempMaps'])->name('get.product-temp.product-temp-tag-list.get-tag-temp-maps');
            $router->get('update-product-temp-tag', [ 'uses' => 'ProductTempController@updateProductTempPage'])->name('get.product-temp.product-temp-tag-list.update-product-temp-tag');
            $router->get('add-product-temp-tag', [ 'uses' => 'ProductTempController@getAddProductTempTag'])->name('get.product-temp.product-temp-tag-list.add-product-temp-tag');
            $router->post('add-product-temp-tag', [ 'uses' => 'TagBackController@addTag'])->name('post.product-temp.product-temp-tag-list.add-product-temp-tag');
            $router->post('add-tag-temp-map', [ 'uses' => 'ProductTempController@addTagTempMap'])->name('post.product-temp.product-temp-tag-list.add-tag-temp-map');
            $router->post('update-product-temp-tag', [ 'uses' => 'TagBackController@updateTag'])->name('post.product-temp.product-temp-tag-list.update-product-temp-tag');
            $router->post('del-product-temp-tag', [ 'uses' => 'TagBackController@delTag'])->name('post.product-temp.product-temp-tag-list.del-product-temp-tag');
            $router->post('batch-update-product-temp', [ 'uses' => 'ProductTempController@bachUpdateProductTemp'])->name('post.product-temp.product-temp-tag-list.batch-update-product-temp');
            $router->post('product-temp-resource-tags', [ 'uses' => 'ProductTempController@getProductTempResourceTags'])->name('post.product-temp.product-temp-tag-list.product-temp-resource-tags');
            $router->post('delete-tag-temp-map', [ 'uses' => 'ProductTempController@deleteTagTempMap'])->name('post.product-temp.product-temp-tag-list.delete-tag-temp-map');
            $router->post('update-tag-temp-map-sort', [ 'uses' => 'ProductTempController@updateTagTempMapSort'])->name('post.product-temp.product-temp-tag-list.update-tag-temp-map-sort');

            $router->get('product-temp-category-list', [ 'uses' => 'ProdTempCategoryController@getProductCategoryList'])->name('get.product-temp.product-temp-category-list');
            $router->get('add-product-temp-category', [ 'uses' => 'ProdTempCategoryController@getAddProductCategory'])->name('get.product-temp.product-temp-category-list.add-product-temp-category');
            $router->get('update-product-temp-category', [ 'uses' => 'ProdTempCategoryController@getUpdateProductCategory'])->name('get.product-temp.product-temp-category-list.update-product-temp-category');
            $router->post('update-product-temp-category', [ 'uses' => 'ProdTempCategoryController@postUpdateProductCategory'])->name('post.product-temp.product-temp-category-list.update-product-temp-category');
            $router->post('add-product-temp-category', [ 'uses' => 'ProdTempCategoryController@postAddProductCategory'])->name('post.product-temp.product-temp-category-list.add-product-temp-category');
            $router->post('search-temp-category', [ 'uses' => 'ProdTempCategoryController@searchTempCategory'])->name('post.product-temp.product-temp-category-list.search-temp-category');
            $router->post('del-temp-category', [ 'uses' => 'ProdTempCategoryController@delTempCategory'])->name('post.product-temp.product-temp-category-list.del-temp-category');

            $router->get('product-temp-list', [ 'uses' => 'ProductTempController@getProdTempList'])->name('get.product-temp.product-temp-list');
            $router->post('search-temp', [ 'uses' => 'ProductTempController@searchTemp'])->name('post.product-temp.product-temp-list.search-temp');
            $router->post('get-temp-attr-list', [ 'uses' => 'ProductTempController@tempAttrList'])->name('post.product-temp.product-temp-list.get-temp-attr-list');
            $router->post('add-product-temp', [ 'uses' => 'ProductTempController@postAddProdTemp'])->name('post.product-temp.product-temp-list.add-product-temp');
            $router->post('delete-product-temp', [ 'uses' => 'ProductTempController@delProdTemp'])->name('post.product-temp.product-temp-list.delete-product-temp');
            $router->post('update-product-temp', [ 'uses' => 'ProductTempController@updateProdTemp'])->name('post.product-temp.product-temp-list.update-product-temp');
            $router->post('update-price', [ 'uses' => 'ProductTempController@updatePrice'])->name('post.product-temp.product-temp-list.update-price');
            $router->post('del-product-temp-colour', [ 'uses' => 'ProductTempController@delProdTempColour'])->name('post.product-temp.product-temp-list.del-product-temp-colour');
            $router->post('del-product-temp', [ 'uses' => 'ProductTempController@delProdTemp'])->name('post.product-temp.product-temp-list.del-product-temp');
            $router->post('update-product-temp-colour-sort', [ 'uses' => 'ProductTempController@updateProdTempColourSort'])->name('post.product-temp.product-temp-list.update-product-temp-colour-sort');
            $router->post('get-stock-by-colour-id', [ 'uses' => 'ProductTempController@prodTempStockByColour'])->name('post.product-temp.product-temp-list.get-stock-by-colour-id');
            $router->post('add-custom-zone', [ 'uses' => 'ProductTempController@postAddCustomZone'])->name('post.product-temp.product-temp-list.add-custom-zone');
            $router->post('save-product-temp-stock', [ 'uses' => 'ProductTempController@saveProductTempStock'])->name('post.product-temp.product-temp-list.save-product-temp-stock');
            $router->post('save-product-temp-actual-stock', [ 'uses' => 'ProductTempController@saveProductTempActualStock'])->name('post.product-temp.product-temp-list.save-product-temp-actual-stock');
            $router->post('add-craftsmanship', [ 'uses' => 'ProductTempController@addCraftsmanship'])->name('post.product-temp.product-temp-list.add-craftsmanship');

            $router->post('add-craftsmanship-colour', [ 'uses' => 'ProductTempController@addCraftsmanshipColour'])->name('post.product-temp.product-temp-list.add-craftsmanship-colour');
            $router->post('update-craftsmanship', [ 'uses' => 'ProductTempController@updateCraftsmanship'])->name('post.product-temp.product-temp-list.update-craftsmanship');
            $router->post('update-custom-zone', [ 'uses' => 'ProductTempController@updateCustomZone'])->name('post.product-temp.product-temp-list.update-custom-zone');
            $router->post('del-custom-zone', [ 'uses' => 'ProductTempController@delCustomZone'])->name('post.product-temp.product-temp-list.del-custom-zone');
            $router->post('del-temp-craftsmanship', [ 'uses' => 'ProductTempController@delTempCraftsmanship'])->name('post.product-temp.product-temp-list.del-temp-craftsmanship');
            $router->post('save-product-temp-sku', [ 'uses' => 'ProductTempController@saveProductTempSku'])->name('post.product-temp.product-temp-list.save-product-temp-sku');
            $router->post('update-product-temp-size-format', [ 'uses' => 'ProductTempController@updateProductTempSizeFormat'])->name('post.product-temp.product-temp-list.update-product-temp-size-format');
            $router->post('update-product-temp-size-values', [ 'uses' => 'ProductTempController@updateProductTempSizeValues'])->name('post.product-temp.product-temp-list.update-product-temp-size-values');
            $router->post('get-product-temp-simple-list', [ 'uses' => 'ProductTempController@getProductTempSimpleList'])->name('post.product-temp.product-temp-list.get-product-temp-simple-list');
            $router->post('update-product-temp-sort', [ 'uses' => 'ProductTempController@postUpdateProductTempSort'])->name('post.product-temp.product-temp-list.update-product-temp-sort');

            $router->get('update-product-temp-size-format', [ 'uses' => 'ProductTempController@updateProductTempSizeFormatPage'])->name('get.product-temp.product-temp-list.update-product-temp-size-format');
            $router->get('product-temp-size-list', [ 'uses' => 'ProductTempController@productTempSizeList'])->name('get.product-temp.product-temp-list.product-temp-size-list');
            $router->get('update-craftsmanship', [ 'uses' => 'ProductTempController@updateCraftsmanshipPage'])->name('get.product-temp.product-temp-list.update-craftsmanship');
            $router->get('add-craftsmanship', [ 'uses' => 'ProductTempController@addCraftsmanshipPage'])->name('get.product-temp.product-temp-list.add-craftsmanship');
            $router->get('craftsmanship-list', [ 'uses' => 'ProductTempController@craftsmanshipList'])->name('get.product-temp.product-temp-list.craftsmanship-list');
            $router->get('add-custom-zone', [ 'uses' => 'ProductTempController@addCustomZonePage'])->name('get.product-temp.product-temp-list.add-custom-zone');
            $router->get('update-custom-zone', [ 'uses' => 'ProductTempController@updateCustomZonePage'])->name('get.product-temp.product-temp-list.update-custom-zone');
            $router->get('custom-zone-list-page', [ 'uses' => 'ProductTempController@productTempCustomZoneListPage'])->name('get.product-temp.product-temp-list.custom-zone-list-page');
            $router->get('add-stock', [ 'uses' => 'ProductTempController@getAddStockPage'])->name('get.product-temp.product-temp-list.add-stock');
            $router->get('update-product-temp', [ 'uses' => 'ProductTempController@getUpdateProdTemp'])->name('get.product-temp.product-temp-list.update-product-temp');
            $router->get('add-product-temp', [ 'uses' => 'ProductTempController@getAddProdTemp'])->name('get.product-temp.product-temp-list.add-product-temp');
            $router->get('craftsmanship-colour-list', [ 'uses' => 'ProductTempController@craftsmanshipColourList'])->name('get.product-temp.product-temp-list.craftsmanship-colour-list');

            $router->post('search-colour', [ 'uses' => 'ColourController@getAllColourList'])->name('post.product-temp.product-temp-list.search-colour');
            $router->post('update-custom-zone-sort', [ 'uses' => 'ProductTempController@updateCustomZoneSort'])->name('post.product-temp.product-temp-list.update-custom-zone-sort');
            $router->post('update-craftsmanship-sort', [ 'uses' => 'ProductTempController@updateCraftsmanshipSort'])->name('post.product-temp.product-temp-list.update-craftsmanship-sort');
            $router->post('delete-craftsmanship-colour', [ 'uses' => 'ProductTempController@deleteCraftsmanshipColour'])->name('post.product-temp.product-temp-list.delete-craftsmanship-colour');
            $router->post('update-craftsmanship-colour-sort', [ 'uses' => 'ProductTempController@updateCraftsmanshipColourSort'])->name('post.product-temp.product-temp-list.update-craftsmanship-colour-sort');
            $router->post('del-product-temp-size', [ 'uses' => 'ProductTempController@delProdTempSize'])->name('post.product-temp.product-temp-list.del-product-temp-size');

            $router->get('temp-attr-list', [ 'uses' => 'ProductTempController@getTempAttrList'])->name('get.product-temp.product-temp-list.temp-attr-list');
            $router->get('update-temp-attr', [ 'uses' => 'ProductTempController@getUpdateTempAttrPage'])->name('get.product-temp.product-temp-list.update-temp-attr');
            $router->get('add-temp-attr', [ 'uses' => 'ProductTempController@getAddTempAttrPage'])->name('get.product-temp.product-temp-list.add-temp-attr');
            $router->post('add-temp-attr', [ 'uses' => 'ProductTempController@addTempAttr'])->name('post.product-temp.product-temp-list.add-temp-attr');
            $router->post('update-temp-attr', [ 'uses' => 'ProductTempController@updateTempAttr'])->name('post.product-temp.product-temp-list.update-temp-attr');
            $router->post('del-temp-attr', [ 'uses' => 'ProductTempController@delTempAttr'])->name('post.product-temp.product-temp-list.del-temp-attr');
            $router->post('update-temp-attr-values', [ 'uses' => 'ProductTempController@updateTempAttrValues'])->name('post.product-temp.product-temp-list.update-temp-attr-values');
            $router->post('get-temp-stock-by-sku', [ 'uses' => 'ProductTempController@getTempStockBySku'])->name('post.product-temp.product-temp-list.get-temp-stock-by-sku');

            $router->get('stocks-export', [ 'uses' => 'ProductTempController@stockExportPage'])->name('get.product-temp.product-temp-list.stocks-export');
            $router->post('stocks-export', [ 'uses' => 'ProductTempController@stockExport'])->name('post.product-temp.product-temp-list.stocks-export');
            $router->get('stocks-import', [ 'uses' => 'ProductTempController@stockImportPage'])->name('get.product-temp.product-temp-list.stocks-import');
            $router->post('stocks-import', [ 'uses' => 'ProductTempController@stockImport'])->name('post.product-temp.product-temp-list.stocks-import');

            $router->get('craftsmanship-default-colour-list', [ 'uses' => 'ProductTempController@craftsmanshipDefaultColourList'])->name('get.product-temp.product-temp-list.craftsmanship-default-colour-list');
            $router->post('delete-craftsmanship-default-colour', [ 'uses' => 'ProductTempController@deleteCraftsmanshipDefaultColour'])->name('post.product-temp.product-temp-list.delete-craftsmanship-default-colour');
            $router->post('add-craftsmanship-default-colour', [ 'uses' => 'ProductTempController@addCraftsmanshipDefaultColour'])->name('post.product-temp.product-temp-list.add-craftsmanship-default-colour');

        });
    }
}